package com.seawaterbt.springbootshiro.realm;

import org.apache.shiro.web.session.mgt.DefaultWebSessionManager;

import javax.servlet.ServletRequest;
import javax.servlet.ServletResponse;
import java.io.Serializable;

/**
 * @author: 快乐在角落里
 * @create: 2018-11-12 17:09
 */
public class MySessionManager extends DefaultWebSessionManager {

    @Override
    protected Serializable getSessionId(ServletRequest request, ServletResponse response) {
        Serializable sessionId = super.getSessionId(request, response);
        System.out.println(sessionId);
        return sessionId;
    }
}
